<script>

    $('#add_friend_form').submit(function(){
        $.post("{% url profile.friends.add %}",
            $('#add_friend_form').serialize(),
            function (data){
                $('#add_friend_div').html(data);
                load_friendslist();
            })

        return false;
    });
</script>

<form id="add_friend_form" action="" method="post">
    {% csrf_token %}
    {{form.as_p}}
    <input type="submit" value="Save" />
</form>
